*US Faces and Conflict initiation
log using usfaces3June16, replace



*this file is usfaces3correctedMarch31.do

use "D:\Faces\Fiji\US Faces of Distrust\FPA RnR 2 Due Apr 7\data check\USFacesFPAJune16Monadic.dta

*Table 1


logit binforce fwhravgJuly20 war cinc election unified dempres coldwar mislg ccspn_ovr disspn_ovr combat  _spline1 _spline2 _spline3, robust cluster(leader)
outreg2 using   usfacesTable1June16c,  dec(3) word replace ctitle(Logit_FWHR)
margins, at(fwhravgJuly20=(1.80 1.85 1.90 1.95 2.0 2.05 2.1 2.15)) level(90)
marginsplot, level(90)
graph save Graph "D:\Faces\Fiji\US Faces of Distrust\FPA RnR 2 Due Apr 7\data check\Figure1monadicJune16c.gph", replace
 

*now removing Kennedy and also cinc (with Kennedy removed the correlation between fwhr and cinc is .74 (with Kennedy in the model it is only .32)

logit binforce fwhravgJuly20 war election unified dempres coldwar mislg ccspn_ovr disspn_ovr combat  _spline1 _spline2 _spline3 if leader~="Kennedy", robust cluster(leader)
outreg2 using   usfacesTable1June16c,  dec(3) word append ctitle(NoKennedy)

 

*note to obtain chi-square use the models without cluster
logit binforce fwhravgJuly20 war cinc election unified dempres coldwar mislg ccspn_ovr disspn_ovr  combat  _spline1 _spline2 _spline3
logit binforce fwhravgJuly20 war election unified dempres coldwar mislg ccspn_ovr disspn_ovr  combat _spline1 _spline2 _spline3 if leader~="Kennedy"
 



*now for dyadic

 
 use "D:\Faces\Fiji\US Faces of Distrust\FPA RnR 2 Due Apr 7\data check\USFacesFPAJune16dyadic.dta


logit binforce c.fwhravgJuly20 war relpow s demscore contig election dempres coldwar unified mislg c.ccspn_ovr c.disspn_ovr  combat _spline1 _spline2 _spline3 , robust cluster(leader)
outreg2 using   usfacesTable1June16c,  dec(3) word append ctitle(Dyadic_Logit)



*FOR CHI-SQUARE remove cluster
logit binforce c.fwhravgJuly20 war relpow s demscore contig election dempres coldwar unified mislg c.ccspn_ovr c.disspn_ovr  combat _spline1 _spline2 _spline3


*now for nbreg**
nbreg bi_in_in_2 fwhravgJuly20 war relpow s demscore contig election dempres coldwar unified mislg c.ccspn c.disspn  combat  _spline1 _spline2 _spline3, cluster(leader) robust
outreg2 using   usfacesTable1June16c,  dec(3) word append ctitle(Nbreg)

*For chi-square remove cluster
nbreg bi_in_in_2 fwhravgJuly20 war relpow s demscore contig election dempres coldwar unified mislg c.ccspn c.disspn  combat  _spline1 _spline2 _spline3


log close

